package cn.huiyunche.base.service.enums;

/**
 * 易宝代付类型（批量，单个）
 *
 * @author hdy [Tuffy]
 */
public enum YeepayCmdEnum {
    BATCH("TransferBatch", "批量代付"),
    SINGLE("TransferSingle", "单个代付"),
    NOTIFY("TransferNotify", "主动通知");

    private final String value;
    private final String text;

    YeepayCmdEnum(String value, String text) {
        this.value = value;
        this.text = text;
    }

    public String getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static YeepayCmdEnum getByValue(String value) {
        for (YeepayCmdEnum temp : YeepayCmdEnum.values()) {
            if (temp.getValue().equals(value)) {
                return temp;
            }
        }
        return null;
    }

}
